//
//  mmjFollowViewController.m
//  Social
//
//  Created by seirra on 2018/5/13.
//  Copyright © 2018年 mmj. All rights reserved.
//

#import "mmjFollowViewController.h"
#import "mmjRecommendFollowViewController.h"
#import "mmjLoginViewController.h"
@interface mmjFollowViewController ()
@property (nonatomic,weak)UITextField* textfield;
@end

@implementation mmjFollowViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     self.view.backgroundColor = mmjCommonBgColor;
    //标题
    self.navigationItem.title = @"我的关注";

    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemwithimage:@"friendsRecommentIcon" highimage:@"friendsRecommentIcon-click" target:self action:@selector(followClick)];
    
//    UITextField* textfield = [[UITextField alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
//    textfield.borderStyle = UITextBorderStyleRoundedRect;
//    
//    textfield.plachholderColor = [UIColor redColor];
//    textfield.placeholder =@"123456";
//    [self.view addSubview:textfield];
//    self.textfield = textfield;
    
//    UILabel* label = [[UILabel alloc]initWithFrame:CGRectMake(100, 100,200, 25)];
//    [self.view addSubview:label];
//
//    //图文混排
//    NSMutableAttributedString* att = [[NSMutableAttributedString alloc]init];
//
//    //你好
//    //
//    NSAttributedString * first = [[NSAttributedString alloc]initWithString:@"你好"];
//    [att appendAttributedString:first];
//
//    //图片
//    //带有图片的附件对象
//    NSTextAttachment* attach = [[NSTextAttachment alloc]init];
//    attach.image = [UIImage imageNamed:@"header_cry_icon"];
//    attach.bounds = CGRectMake(0, -(25- label.font.lineHeight)*0.5, label.font.lineHeight, label.font.lineHeight);
//    //将附件对象包装成一个属性文字
//    NSAttributedString*second = [NSAttributedString attributedStringWithAttachment:attach];
//    [att appendAttributedString:second];
//
//
//    NSAttributedString *third = [[NSAttributedString alloc]initWithString:@"哈哈哈哈哈哈哈"];
//    [att appendAttributedString:third];
//
//    label.attributedText = att;
    
    
    
}
-(void)followClick{
    
    mmjRecommendFollowViewController* follow = [[mmjRecommendFollowViewController alloc]init];
    [self.navigationController pushViewController:follow animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (IBAction)LoginRegister {
    mmjLoginViewController* loginregister = [[mmjLoginViewController alloc]init];
    [self presentViewController:loginregister animated:YES completion:nil];
}
@end
